package com.itheima.类加载与反射.反射.案例一;

public class 反射测试 {
    public static void main(String[] args) throws ClassNotFoundException {
        Class cl1 = Student.class;
        System.out.println(cl1);

        Class cl2 = new Student().getClass();
        System.out.println(cl2);

        Class cl3 = Class.forName("com.itheima.类加载与反射.反射.案例一.Student");
        System.out.println(cl3);
        System.out.println(cl1 == cl2);
        System.out.println(cl2 == cl3);
    }
}
